/*
 * @(#)CommonConstants.java
 *
 * Copyright (c) 2015 DHC Corporation.
 */
package com.dhc.appbusinessfrm.util;


public class CommonConstants{

	/** 丹露 */
	public static final String MALL_NAME = "mall";

	/** 名称默认标记位# */
	public static final String FIRST_NAME_LETTER = "#";

	/** 下拉刷新列表每次取得数据数量 */
	public static final int LIST_NUM = 10;

	/** 密码最大长度 */
	public static final int PASSWORD_MAX_LENGTH = 16;

	/** 日期格式 */
	public static String DATE_FORMAT = "yyyy-MM-dd";

	/** 日期时间格式 */
	public static String DATE_FORMAT_TIME = "yyyy-MM-dd hh:mm:ss";

	/** 订单状态·卖家 */
	/** 未接收 */
	public static final int SELLER_ORDER_STATUS_NOT_RECEIVE = 0;
	/** 已接收 */
	public static final int SELLER_ORDER_STATUS_HAD_RECEIVE = 1;
	/** 已出库 */
	public static final int SELLER_ORDER_STATUS_CARGO = 2;
	/** 配送完成 */
	public static final int SELLER_ORDER_STATUS_DELIVERY = 3;
	/** 交易完成 */
	public static final int SELLER_ORDER_STATUS_TRADE_FINISHED = 4;
	/** 退款 */
	public static final int SELLER_ORDER_STATUS_DRAWBACK = 5;

	/** 订单状态·买家 */
	/** 未付款 */
	public static final int BUYER_ORDER_STATUS_NOT_PAYMENT = 0;
	/** 已付款 */
	public static final int BUYER_ORDER_STATUS_HAD_PAYMENT = 1;
	/** 配送中 */
	public static final int BUYER_ORDER_STATUS_DELIVERYING = 2;
	/** 交易完成 */
	public static final int BUYER_ORDER_STATUS_TRADE_FINISHED = 3;
	/** 已退款 */
	public static final int BUYER_ORDER_STATUS_DRAWBACK = 4;
	/** 已取消 */
	public static final int BUYER_ORDER_STATUS_CANCELED = 5;

	/**
	 * 配置常量
	 * 
	 * @author MuWei
	 * @version 1.00 2015/02/02 新建
	 */
	public static class CONFIGURATION {
		/** 工程名称 */
		public static final String AGENT_NAME = "danlu";
		/** 配置文件路径 */
		public static final String OBJECT_FACTORY_XML = "/assets/object_factory.xml";
		/** 缓存 */
		public static final String CACHE_PATH = "Cache";
	}

	/**
	 * 通信状态常量
	 * 
	 * @author MuWei
	 * @version 1.00 2015/02/06 新建
	 */
	public static class Http {
		/** 通信正常 */
		public static final int HTTP_OK = 200;
		/** 通信异常 */
		public static final int HTTP_ERROR = -1;
	}

	/**
	 * Intent传递Key
	 * 
	 * @author MuWei
	 * @version 1.00 2015/02/08 新建
	 */
	public static class IntentKey {
		/** 订单·配送中心（销售）类型 */
		public static final String SELLER_ORDER_STATUS = "status";
		/** 订单·采购中心（采购员）类型 */
		public static final String BUYER_ORDER_STATUS = "status";
		/** 订单详细·订单ID */
		public static final String ORDER_ID = "orderId";
		/** 订单状态 */
		public static final String ORDER_STATUS = "orderStatus";
		/** 商品ID */
		public final static String MERCHANDISE_ID = "merchandiseId";
		/** 分类红酒代码 */
		public static final String RED_WINE_CODE = "B012";
		/** 分类白酒代码 */
		public static final String WINE_CODE = "B011";
		/** 分类茶代码 */
		public static final String TEA_CODE = "B013";
		/** 分类红酒字 */
		public static final String RED_WINE_WORD = "红酒";
		/** 分类白酒字 */
		public static final String WINE_WORD = "白酒";
		/** 分类茶字 */
		public static final String TEA_WORD = "茶";
		/** 分类关键字搜索商品名*/
		public static final String GOOD_NAME = "merchandiseName";
		/** 分类关键字搜索价格区间 */
		public static final String PRICE_RANGE = "priceRange";
		/** 分类关键字搜索商品类型 */
		public static final String GOOD_TYPE = "merchandiseType";
		/** 分类品牌名常量 */
		public static final String BRAND_TYPE = "brand_type";
		/** 分类品牌编码常量 */
		public static final String BRAND_CODE = "brand_code";
		/** 分类品牌名常量 */
		public static final String BRAND_NAME = "brand_name";
		/** 分类低价常量 */
		public static final String LOW_PRICE = "price_low";
		/** 分类高价常量 */
		public static final String HIGH_PRICE = "price_high";
		/** 分类搜索关键字 */
		public static final String KEY_WORD = "keyword";
		/** 购物车选中的商品Id */
		public static final String MERCHANDISE_ID_ARR = "merchandise_id_arr";
		/** 购物车选中的规格Id */
		public static final String SPECIFICATION_ID_ARR = "specification_id_arr";
		/** 是否从未支付订单跳转 */
		public static final String IS_ORDER = "is_order";
		/** 支付订单号 */
		public static final String PAYMENT_ORDER_NO = "payment_order_no";
		/** 订单总额 */
		public static final String TOTAL_MONEY = "total_money";
	}

	/**
	 * 登录用户角色
	 * 
	 * @author MuWei
	 * @version 1.00 2015/02/08 新建
	 */
	public static class LoginCustomerRole {

		/** 配送商(管理员) */
		public static final String B_R_ADMI = "B_R_ADMI";
		/** 配送商(采购员) */
		public static final String B_R_PURC = "B_R_PURC";
		/** 配送商(销售员) */
		public static final String B_R_SALE = "B_R_SALE";
		/** 终端店 */
		public static final String T_ROLE = "T_ROLE";

		/** 配送商(管理员) */
		public static final int ROLE_ADMI = 0;
		/** 配送商(采购员) */
		public static final int ROLE_PURC = 1;
		/** 配送商(销售员) */
		public static final int ROLE_SALE = 2;
		/** 终端店 */
		public static final int ROLE_TERMINAL = 3;
	}

	/**
	 * 密码强度
	 * 
	 * @author MuWei
	 * @version 1.00 2015/02/26 新建
	 */
	public static class PasswordStrength {
		/** 密码格式错误 */
		public static final int ERROR = -1;
		/** 密码强度：弱 */
		public static final int WEAK = 0;
		/** 密码强度：中 */
		public static final int MEDIUM = 1;
		/** 密码强度：强 */
		public static final int TOUGH = 2;
	}

	public static final Object NULL = null;

	public static final String BLANK = "";

	public static final String EXCLAMATION = "!";
	public static final String AT = "@";
	public static final String POUND = "#";
	public static final String DOLLAR = "$";
	public static final String PERCENT = "%";
	public static final String CARET = "^";
	public static final String AMPERSAND = "&";
	public static final String ASTERISK = "*";
	public static final String OPEN_PAREN = "(";
	public static final String CLOSE_PAREN = ")";
	public static final String MINUS = "-";
	public static final String UNDERSCORE = "_";
	public static final String EQUAL = "=";
	public static final String PLUS = "+";
	public static final String OPEN_BRACKET = "[";
	public static final String OPEN_BRACE = "{";
	public static final String CLOSE_BRACKET = "]";
	public static final String CLOSE_BRACE = "}";
	public static final String SEMICOLON = ";";
	public static final String COLON = ":";
	public static final String QUOTE = "'";
	public static final String DOUBLE_QUOTE = "\"";
	public static final String TILDE = "~";
	public static final String BACK_SLASH = "\\";
	public static final String VERTICAL_BAR = "|";
	public static final String COMMA = ",";
	public static final String LESS = "<";
	public static final String PERIOD = ".";
	public static final String GREATER = ">";
	public static final String SLASH = "/";
	public static final String QUESTION = "?";
	public static final String SPACE = " ";
}
